route.beforeLoad (tanstack)
レンダリング前に走る
返り値は、
route context (tanstack)
にマージされ、
route.loader (tanstack)
などで参照できる
よくある用途
認可チェック
からの、
throw redirect({ to: ... })
でリダイレクト
Promiseを返すと、pendingになる
pendingMs
を超えると
pendingComponent
を表示する